<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<xsl:include href="core\form.xsl"/>
	<xsl:include href="core\layout_empty.xsl"/>
	
<xsl:template match="page">
	<xsl:call-template name="page_content"/>
</xsl:template>

<xsl:template name="page_content">
	<br/>
	<h3 style="margin: 0;" align="left">&#160;&#160;&#160;&#160;&#160;
		<font color="#000000">Company Contacts</font>
	</h3>
	<hr width="90%" size="1"  color="{$header_bg_color}"/>
	<br/>

	<table cellspacing="2" cellpadding="4" align="center">
		<tr>
			<td>
			<table cellspacing="0" cellpadding="0" width="100%">
							<tr>
								<td>
									<nobr><font class="f1" color="{$color_main_first1}">								<b>Name</b></font></nobr>
									</td>
							</tr>
							<tr>
								<td bgcolor="{$header_bg_color}" height="1">
								<img src="{$img_path_templates}/spacer.gif" width="1" height="1"/>
								</td>
							</tr>
						</table>
			</td>
			<td><table cellspacing="0" cellpadding="0" width="100%">
							<tr>
								<td>
									<nobr><font class="f1" color="{$color_main_first1}">								<b>Phone</b></font></nobr>
								</td>
							</tr>
							<tr>
								<td bgcolor="{$header_bg_color}" height="1">
								<img src="{$img_path_templates}/spacer.gif" width="1" height="1"/>
								</td>
							</tr>
						</table></td>
		</tr>
		<xsl:for-each select="contacts/contact">
			<xsl:variable name="contact_id"><xsl:value-of select="contact_id"/></xsl:variable>
	 		<xsl:variable name="company_id"><xsl:value-of select="insurance_companies_id"/></xsl:variable>
			<tr>
				<td>
					<xsl:value-of select="fname"/>&#160;
					<xsl:value-of select="mname"/>&#160;
					<xsl:value-of select="lname"/>&#160;
				</td>
				<td>
					<xsl:value-of select="phone"/>
					<xsl:if test="string-length(phone_ext)>0">
						Ext: <xsl:value-of select="phone_ext"/>
					</xsl:if>
				</td>
			</tr>
		</xsl:for-each>
		<tr>
			<td colspan="2" align="center">
				<input type="image" value="cancel" vspace="10" onClick="window.close();" src="{$img_path_templates}/{$header_bg_color}/buttons/btn_close.gif"/>
			</td>
		</tr>
	</table>
</xsl:template>

</xsl:stylesheet>
